/**
  ******************************************************************************
  * @file    Api/glcddisplay.h 
  * @author  zlf
  * @version V1.0.0
  * @date    2016-04-05
  * @brief   Header for glcddisplay.c module
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __GLCD_DISPLAY
#define __GLCD_DISPLAY

/* Includes ------------------------------------------------------------------*/
	#include "glcd.h"
/* Exported types ------------------------------------------------------------*/

typedef enum
{
	GUI_TEXTMODE_NORMAL = 0,
	GUI_TEXTMODE_REVERSE = 1,
	GUI_TEXTMODE_UNDERLINE = 2
}Gui_TextMode;

typedef enum
{
	GUI_ALIGNSTYLE_LEFT = 0,
	GUI_ALIGNSTYLE_HCENTER = 1,
	GUI_ALIGNSTYLE_RIGHT = 2
}Gui_AlignStyle;

/* Exported functions --------------------------------------------------------*/
extern void Glcd_Write_Char( uc8 Ch, Gui_TextMode TextMode );
extern void Glcd_Put_EnStr( const char* pstr, Gui_TextMode TextMode );
extern void Glcd_Write_Digit( uc8 Digit, Gui_TextMode TextMode );
extern void Glcd_Write_Decimal( uc8 Decimal, Gui_TextMode TextMode );
extern void Glcd_Write_Hundred( uc16 hundred, Gui_TextMode TextMode );
extern void Glcd_Write_Thousand( uc16 thousand, Gui_TextMode TextMode );
extern void Glcd_Write_Million( uc16 million, Gui_TextMode TextMode );
extern void Glcd_Write_Pos( sc16 pos, Gui_TextMode TextMode );
extern void Glcd_Write_Chinese( uc8* ChrCn, Gui_TextMode TextMode );
extern void Glcd_Put_CnStr( const u8* pStrCn, Gui_TextMode TextMode );
extern void Glcd_DispStringAt(const u8* str, u8 X0, u8 Y0, u8 X1, Gui_TextMode TextMode, Gui_AlignStyle AlignStyle);
extern void Glcd_Clear_Line( u8 X0, u8 Y0, u8 X1 );

extern void Glcd_Write_Cm( sc16 hundred, Gui_TextMode TextMode );
extern void Glcd_Write_Kg( uc16 hundred, Gui_TextMode TextMode );
extern void Glcd_Write_V( uc16 hundred, Gui_TextMode TextMode );
extern void Glcd_Write_Time( uc8 Decimal );
extern void Glcd_Write_Time_Rev( uc8 Decimal );

#endif /* __GLCD_DISPLAY */
 

 

